package model.financial;

public class BillOpen implements BillState {
	private Bill bill;

	public BillOpen(Bill bill) {
		this.bill = bill;
		bill.setState(this);
	}

	@Override
	public void handle() throws Exception {
		bill.setState(bill.getBillSent());
	}

	@Override
	public void archive() throws Exception {
		throw new Exception("Bill must be payed before it can be archived.");

	}
}
